package com.app.mapper;

import com.app.domain.po.SettingPo;
import com.app.domain.vo.SettingVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * SettingMapper
 */
@Repository
public interface SettingMapper extends BaseMapper<SettingPo> {

    /**
     * 查询全部配置
     */
    List<SettingVo> details();

    /**
     * 根据Code查询配置
     *
     * @param code 配置Code
     */
    SettingVo selectSettingByCode(@Param("code") String code);

}